package com.cangshukj.junong.service.impl;

import java.util.List;
import com.cangshukj.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cangshukj.junong.mapper.IncubatorsReginfoMapper;
import com.cangshukj.junong.domain.IncubatorsReginfo;
import com.cangshukj.junong.service.IIncubatorsReginfoService;

/**
 * 孵化地基-登记信息Service业务层处理
 * 
 * @author wangjie
 * @date 2025-04-01
 */
@Service
public class IncubatorsReginfoServiceImpl implements IIncubatorsReginfoService 
{
    @Autowired
    private IncubatorsReginfoMapper incubatorsReginfoMapper;

    /**
     * 查询孵化地基-登记信息
     * 
     * @param id 孵化地基-登记信息主键
     * @return 孵化地基-登记信息
     */
    @Override
    public IncubatorsReginfo selectIncubatorsReginfoById(String id)
    {
        return incubatorsReginfoMapper.selectIncubatorsReginfoById(id);
    }

    /**
     * 查询孵化地基-登记信息列表
     * 
     * @param incubatorsReginfo 孵化地基-登记信息
     * @return 孵化地基-登记信息
     */
    @Override
    public List<IncubatorsReginfo> selectIncubatorsReginfoList(IncubatorsReginfo incubatorsReginfo)
    {
        return incubatorsReginfoMapper.selectIncubatorsReginfoList(incubatorsReginfo);
    }

    /**
     * 新增孵化地基-登记信息
     * 
     * @param incubatorsReginfo 孵化地基-登记信息
     * @return 结果
     */
    @Override
    public int insertIncubatorsReginfo(IncubatorsReginfo incubatorsReginfo)
    {
        incubatorsReginfo.setCreateTime(DateUtils.getNowDate());
        return incubatorsReginfoMapper.insertIncubatorsReginfo(incubatorsReginfo);
    }

    /**
     * 修改孵化地基-登记信息
     * 
     * @param incubatorsReginfo 孵化地基-登记信息
     * @return 结果
     */
    @Override
    public int updateIncubatorsReginfo(IncubatorsReginfo incubatorsReginfo)
    {
        incubatorsReginfo.setUpdateTime(DateUtils.getNowDate());
        return incubatorsReginfoMapper.updateIncubatorsReginfo(incubatorsReginfo);
    }

    /**
     * 批量删除孵化地基-登记信息
     * 
     * @param ids 需要删除的孵化地基-登记信息主键
     * @return 结果
     */
    @Override
    public int deleteIncubatorsReginfoByIds(String[] ids)
    {
        return incubatorsReginfoMapper.deleteIncubatorsReginfoByIds(ids);
    }

    /**
     * 删除孵化地基-登记信息信息
     * 
     * @param id 孵化地基-登记信息主键
     * @return 结果
     */
    @Override
    public int deleteIncubatorsReginfoById(String id)
    {
        return incubatorsReginfoMapper.deleteIncubatorsReginfoById(id);
    }

    @Override
    public IncubatorsReginfo selectIncubators(IncubatorsReginfo incubatorsReginfo) {
        return incubatorsReginfoMapper.selectIncubators(incubatorsReginfo);
    }
}
